Lua/Client/Button
From JC2-MP Documentation
Contents
Events
Events inherited from BaseWindow
Static functions
 
 
 
 Returns
 
 Prototype
 
 
 Button
 
 Create(BaseWindow, string)
 
 
 Button
 
 Create(string)
 
 
 Button
 
 Create(BaseWindow)
 
  Button
 
 Create()
 
Functions
 
 
 
 Returns
 
 Prototype
 
 
 boolean
 
 GetPressed()
 
 
 boolean
 
 GetToggleState()
 
 
 boolean
 
 GetToggleable()
 
 
 
 SetPressed(boolean)
 
 
 
 SetTextNormalColor(Color)
 
 
 
 SetTextHoveredColor(Color)
 
 
 
 SetTextPressedColor(Color)
 
 
 
 SetTextDisabledColor(Color)
 
 
 
 SetToggleState(boolean)
 
 
 
 SetToggleable(boolean)
 
 
 
 Toggle()
 
Functions inherited from Label
 
 
 
 Returns
 
 Prototype
 
 
 number
 
 GetAlignment()
 
 
 number
 
 GetLineSpacing()
 
 
 string
 
 GetText()
 
 
 Color
 
 GetTextColor()
 
 
 number
 
 GetTextHeight()
 
 
 number
 
 GetTextLength()
 
 
 
 GetTextPadding()
 
 
 number
 
 GetTextSize()
 
 
 number
 
 GetTextWidth()
 
 
 boolean
 
 GetWrap()
 
 
 
 SetAlignment(number)
 
 
 
 SetColorBright()
 
 
 
 SetColorDark()
 
 
 
 SetColorHighlight()
 
 
 
 SetColorNormal()
 
 
 
 SetFont(AssetLocation, string)
 
 
 
 SetLineSpacing(number)
 
 
 
 SetText(string, boolean)
 
 
 
 SetText(string)
 
 
 
 SetTextColor(Color)
 
 
 
 SetTextPadding(Vector2, Vector2)
 
 
 
 SetTextSize(number)
 
 
 
 SetWrap(boolean)
 
 
 
 SizeToContents()
 
Functions inherited from BaseWindow
 
Operators
 
 
 
 
 
 Returns
 
 Prototype
 
  boolean
 
 Button == Button
 

